#include "Frame.h"


Frame::Frame(void)
{
}


Frame::~Frame(void)
{
}

RECT Frame::GetCollisionBox(void) const
{
	return this->hitBox;
}
RECT Frame::GetSourceRect(void) const
{
	return this->SourceRect;
}

float Frame::GetDuration(void)
{
	return this->duration;
}

//Mutators -- For Loading
void Frame::SetHitBox( int left, int top, int right, int bottom )
{
	RECT temp;
	temp.bottom = bottom;
	temp.left = left;
	temp.right = right;
	temp.top = top;

	this->hitBox = temp;
}
void Frame::SetSourceRect(  int left, int top, int right, int bottom )
{
	RECT temp;
	temp.bottom = bottom;
	temp.left = left;
	temp.right = right;
	temp.top = top;

	this->SourceRect = temp;
}

void Frame::SetDuration( float dur )
{
	this->duration = dur; 
}
void Frame::SetAnchorPoint( int X, int Y)
{
	this->anchorPoint.x = X;
	this->anchorPoint.y = Y;
}

POINT Frame::GetAnchor(void) const
{
	POINT temp;
	temp.x = anchorPoint.x;
	temp.y = anchorPoint.y;
	return temp;
}

POINT Frame::GetShoulderPoint(void) const
{
	POINT temp = { ShoulderPoint.x, ShoulderPoint.y };
	return temp;
}

void Frame::SetShoulderPoint( int X, int Y)
{
	ShoulderPoint.x = X;
	ShoulderPoint.y = Y;
}